import axios from 'axios';
function ajax(options) {
    return new Promise((resolve, reject) => {
        const axiosIntance = axios.create({
            baseURL: 'http://127.0.0.1:3000',
            timeout: 60000
        });
        axiosIntance(options)
            .then((res) => {
                resolve(res);
            })
            .catch((err) => {
                reject(err);
            });
    });
}
export default ajax;
